
//语音合成
export function speak(text){
    var synthesis = window.speechSynthesis;
    var utterance = new SpeechSynthesisUtterance(text);
    utterance.rate = 1.9; // 控制语速
    utterance.pitch = 2; // 控制音高
    synthesis.speak(utterance);
}